package com.money.tracker.auth.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 菜单状态枚举
 * <p>
 *
 * @author zhangshuai
 * &#064;@date 2024/10/07
 */
@Getter
@AllArgsConstructor
public enum MenuStatusEnum {

    /**
     * 正常
     */
    NORMAL(0, "正常"),
    /**
     * 停用
     */
    DISABLED(1, "停用");

    private final Integer code;
    private final String desc;


    public static Boolean disable(Integer code) {
        return DISABLED.getCode().equals(code);
    }

    public static Boolean normal(Integer code) {
        return NORMAL.getCode().equals(code);
    }
}
